package com.wpf.rounter2function.exception;

import lombok.Data;

@Data
public class ValidException extends RuntimeException{

    private static final long serialVersionUID = 1462833188269945126L;

    //异常字段
    private String key;
    //异常字段的值
    private String value;

    public ValidException() {
        super();
    }

    public ValidException(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public ValidException(String message) {
        super(message);
    }

    public ValidException(Throwable cause) {
        super(cause);
    }

    public ValidException(String message, Throwable cause) {
        super(message, cause);
    }

    public ValidException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
